<?php
/*
Plugin Name: FileBrowser汉化修正版
Plugin URI: http://danielhuesken.de/portfolio/filebrowser/
Description: FileBrowser汉化修正版由哼哼猪( (oo) )原创汉化并修复权限修改错误和上传文件权限问题！ ●FileBrowser是一个wordpress后台的文件管理器，通过它你可以很方便的进行文件和文件夹的在线管理（支持上传、复制、移动、解压、压缩、权限编辑等功能），你也可以创建新文件，同时支持网络远程上传，如果你想要在线编辑，FileBrowser也提供了很好的编辑器，支持代码高亮！
Author: Daniel H&uuml;sken
Version: 0.5.5
Author URI: http://danielhuesken.de
Text Domain: filebrowser
Domain Path: /lang/
*/

/*  
	Copyright 2009  Daniel H黶ken  (email : daniel@huesken-net.de)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

// don't load directly 
if ( !defined('ABSPATH') ) 
	die('-1');

//Set plugin dirname
define('FILEBROWSER_PLUGIN_DIR', dirname(plugin_basename(__FILE__)));
//Set Plugin Version
define('FILEBROWSER_VERSION', '0.5.5');
global $wp_version;
//Load functions file
require_once(plugin_dir_path(__FILE__).'app/functions.php');

//Version check
if (version_compare($wp_version, '2.8', '<')) { // Let only Activate on WordPress Version 2.8 or heiger
	add_action('admin_notices', create_function('', 'echo \'<div id="message" class="error fade"><p><strong>' . __('对不起, FileBrowser只能运行在WordPress 2.8或更高版本!','filebrowser') . '</strong></p></div>\';'));
} else {
	//Plugin init	
	add_action('plugins_loaded', 'filebrowser_init');
}
?>
